//
//  DiscoverListModelSecond.m
//  XYFMApp
//
//  Created by 岁变 on 16/9/8.
//  Copyright © 2016年 岁变. All rights reserved.
//

#import "DiscoverListModelSecond.h"
#import "XYMacro.h"

@implementation DiscoverListModelSecond

- (void)setValue:(id)value forKey:(NSString *)key {
    if ([key isEqualToString:@"status"]) {
        _status = [DiscoverListModelSecondStatus modelWithDictionary:value];
    }
    
    if ([key isEqualToString:@"data"]) {
        NSMutableArray *mArr = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DiscoverListModelSecondData *model = [DiscoverListModelSecondData modelWithDictionary:dic];
            [mArr addObject:model];
        }
        _data = mArr;
    }
    if ([key isEqualToString:@"paginated"]) {
        _paginated = [DiscoverListModelSecondPaginated modelWithDictionary:value];
    }
}

@end
